package ar.edu.itba.pod.legajo48240.utils;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
import java.util.concurrent.BlockingQueue;


import ar.edu.itba.event.EventInformation;
import ar.edu.itba.node.NodeInformation;
import ar.edu.itba.pod.agent.runner.Agent;

public class Utils{

	public static Set<NodeInformation> clone(Set<NodeInformation> nodes){
		Set<NodeInformation> copy = new HashSet<NodeInformation>();
		copy.addAll(nodes);
		return copy;
	}
	
	public static Set<EventInformation> clone(BlockingQueue<EventInformation> events){
			Set<EventInformation> copy = new HashSet<EventInformation>();
			copy.addAll(events);
			return copy;
	}
	
	public static List<Agent> clone(List<Agent> agents){
		List<Agent> copy = new ArrayList<Agent>();
		copy.addAll(agents);
		return copy;
		
	}
}
